<%@ taglib prefix="spring-tags" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="spring-form" uri="http://www.springframework.org/tags/form"%>
<%@ page
    import="org.jiscinvolve.astrodabis.barberry.control.Paths"
    import="org.jiscinvolve.astrodabis.barberry.control.ObjectData"
    import="org.jiscinvolve.astrodabis.barberry.control.RequestData"
    import="org.jiscinvolve.astrodabis.barberry.common.core.Job"
    import="org.jiscinvolve.astrodabis.barberry.common.core.Tag"
    import="org.jiscinvolve.astrodabis.barberry.common.core.Account"
    session="true"
%><%
ObjectData<Job> data = (ObjectData<Job>) request.getAttribute(
    RequestData.MODEL_ATTRIB
    ) ;
Account actor = data.actor();
Job job  = data.object();
%>
<html>
    <head>
	    <title>AstroDAbis <%= job.owner().name() %>&apos;s job <%= job.name() %></title>
        <link href='<%= data.file("css/page.css") %>' rel='stylesheet' type='text/css'/>
    </head>
    <body>
        <%@ include file="/jsp/header.jsp" %>
        <div class='body'>
            <div class='left'>
                <%@ include file="/jsp/menu.jsp" %>
            </div>
            <div class='right'>
                <a href='<%= data.link(job) %>'>
                    <img src='<%= data.qrcode(data.link(job)) %>'/>
                </a>
            </div>
            <div class='content'>
        	    <h2><%= job.owner().name() %>&apos;s data set <%= job.name() %></h2>

      			<spring-form:errors path="bean"/>
		        <spring-form:form method="post" modelAttribute="bean">
		          	<fieldset>
		          		<legend>Name</legend>
	              		<spring-form:input  path="name"/>
              			<spring-form:errors path="name"/>
		          	</fieldset>
		          	<fieldset>
		          		<legend>Description</legend>
	              		<spring-form:textarea rows='3' cols='50' path="text"/>
	          			<spring-form:errors path="text"/>
		          	</fieldset>

			        <div>
			            <button type="submit">Update</button>
		            </div>
		        </spring-form:form>

            </div>
        </div>
        <%@ include file="/jsp/footer.jsp" %>
    </body>
</html>

